import request from '@/utils/http'
import api from '@/utils/https'
export function getAdsList(params: any) {
	return request({ url: `portal/ads/list`, method: 'get', params })
}
export function getAllGameList(params: any) {
	return request({ url: `portal/game/list`, method: 'get', params })
}
export function getGameTagList(params: any) {
	return request({ url: `portal/gameTag/list`, method: 'get', params })
}
export function getGameTagListById(params: any) {
	return request({
		url: `portal/game/${params.gameTagGroupId}/${params.id}`,
		method: 'get',
		params
	})
}
export function getCasinoGameBySlug(params: any) {
	return request({ url: `portal/casino/tags/${params.tagSlug}`, method: 'get', params })
}
export function getHomeGameRecommendList(params: any) {
	return request({ url: `portal/gameRecommended/list`, method: 'get', params })
}
export function gameRecentPlayedList(params: any) {
	return request({ url: `portal/gameRecentPlayed/list`, method: 'get', params })
}
export function getBigWinnerList(params: any) {
	return request({ url: `rank/payout/list`, method: 'get', params })
}
export function getAllProviderList(params: any) {
	return request({ url: `portal/developer/list`, method: 'get', params })
}
export function getProviderBySlug(params: any) {
	return request({ url: `portal/casino/providers/${params.developerSlug}`, method: 'get', params })
}
export function launchGameAPI(params: any) {
	return api.post(`portal/game/launch`, params)
}
export function getGameDetailBySlug(params: any) {
	return request({ url: `portal/casino/games/${params.slug}`, method: 'get', params })
}
export function getGameDetailWinner(params: any) {
	return request({ url: `portal/casino/games/gameWinner/${params.slug}`, method: 'get', params })
}
export function getRecentPlayedGameLists(params: any) {
	return request({ url: `portal/gameRecentPlayed/list`, method: 'get', params })
}
export function globalSearchGame(params: any) {
	return request({ url: `portal/game/search`, method: 'get', params })
}
export function globalSearchRecommend(params: any) {
	return request({ url: `portal/searchRecommend/list`, method: 'get', params })
}
export function globalSearchHistory() {
	return request({ url: `portal/game/search/history`, method: 'get' })
}
export function globalSearchHistoryDeleteAll() {
	return request({ url: `portal/game/search/history/delete`, method: 'delete' })
}
export function globalSearchHistoryDeleteByKeyword(params: any) {
	return request({ url: `portal/game/search/history/delete/${params}`, method: 'delete' })
}
export function getAllFavoriteGameLists(params: any) {
	return api.post(`portal/player/favorite/list`, params)
}
export function favouriteAdd(params: any) {
	return api.post(`portal/player/favorite/add`, params)
	//return request({ url: `portal/player/favorite/add`, method: 'post', params })
}
export function favouriteRemove(params: any) {
	return api.post(`portal/player/favorite/remove`, params)
}
export function getProviderListByGameTagId(params: any) {
	return request({
		url: `portal/option/developer/${params.tagSlug}`,
		method: 'get'
	})
}
export function getGameTagBySlug(params: any) {
	return request({
		url: `portal/option/gameTag/${params.tagSlug}`,
		method: 'get'
	})
}
export function getBetLatest(params: any) {
	return request({ url: `rank/bet/latest`, method: 'get', params })
}
export function getBetContestWeekly(params: any) {
	return request({ url: `rank/bet/contest/weekly`, method: 'get', params })
}
export function getBetContestMine(params: any) {
	return request({ url: `rank/bet/contest/mine`, method: 'get', params })
}
export function getBetContestBounds(params: any) {
	return request({ url: `rank/bet/contest/bounds`, method: 'get', params })
}
export function getBetContestPrev(params: any) {
	return request({ url: `rank/bet/contest/prev`, method: 'get', params })
}
export function getMyBets(params: any) {
	return request({ url: `portal/order/mine`, method: 'get', params })
}
export function getTransactionRecode(params: any) {
	//return request({ url: `wallet/front/payment/transactionRecode`, method: 'post', params })
	return api.post(`wallet/front/payment/transactionRecode`, params)
}
export function getTransactionRecodePayout(params: any) {
	return request({ url: `wallet/front/payment/payouts`, method: 'post', params })
}
export function getTransactionRecodeDepositFiat(params: any) {
	return request({ url: `wallet/front/payment/fiatDeposit`, method: 'post', params })
}
export function getTransactionRecodePaymentRecord(params: any) {
	return api.post(`wallet/front/payment/paymentReport`, params)
	// return request({ url: `/wallet/front/payment/paymentReport`, method: 'post', params })
}
